{% load poll_extras %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>


<table class="table table-hover">
	<caption>悬停表格布局</caption>
	<thead>
		<tr>
			<th>名称</th>
			<th>上传时间</th>
		</tr>
	</thead>
	<tbody>
    {% for doc in documents %}
		<tr>
			<td><a href="{{ doc.docfile.url }}">{% split_to_list doc.docfile.name "/" -1 %}</a></td>
			<td>{% split_to_list doc.docfile.name "/" start=1 stop=4 %}</td>

		</tr>
    {% endfor %}
	</tbody>
</table>





<form action="/file/" method="post" enctype="multipart/form-data">
    {{ form.as_p }}
    <input type="submit" value="上传"/>
    <span style="color: red">{{ str }}</span>
    {% csrf_token %}
</form>





<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>